package com.zuser.project.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 司机账户
 * 
 * @author zuser
 * @email 2076033693@gmail.com
 * @date 2025-04-01 14:49:39
 */
@Data
@TableName("driver_account")
public class DriverAccountEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 编号
	 */
	@TableId
	private Long id;
	/**
	 * 司机id
	 */
	private Long driverId;
	/**
	 * 账户总金额
	 */
	private BigDecimal totalAmount;
	/**
	 * 锁定金额
	 */
	private BigDecimal lockAmount;
	/**
	 * 可用金额
	 */
	private BigDecimal availableAmount;
	/**
	 * 总收入
	 */
	private BigDecimal totalIncomeAmount;
	/**
	 * 总支出
	 */
	private BigDecimal totalPayAmount;
	/**
	 * 创建时间
	 */
	@TableField(fill = FieldFill.INSERT)
	private Date createTime;
	/**
	 *
	 */
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updateTime;
	/**
	 *
	 */
	private Integer isDeleted;

}
